<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jQuery-1.11/jquery-1.11.3.js"></script>
</head>
<script>
    $(function () {

        $("#btn1").click(function () {
            $.get("/employees/1",function (data) {
                console.log(data)
            })
        });
        $("#btn2").click(function () {
            $.get("/employees",function (data) {
                console.log(data)
            })
        });
        $("#btn3").click(function () {
            $.post("/employees",{name:"dasha",age:18},function (data) {
                console.log(data)
            })
        });
        $("#btn4").click(function () {
            $.ajax({
                url:"/employees/1",
                type:"DELETE",
                data:{id:8},
                success:function (data) {
                    console.log(data);
                }
            })
        });
        $("#btn5").click(function () {
            $.ajax({
                url:"/employees",
                type:"PUT",
                data:{id:8,name:"dasha",age:18},
                success:function (data) {
                    console.log(data);
                }
            })
        })
    })
</script>
<body>

<button type="button" id="btn1">查单个</button>
<button type="button" id="btn2">查多个</button>
<button type="button" id="btn3">添加</button>
<button type="button" id="btn4">删除</button>
<button type="button" id="btn5">更新</button>

</body>
</html>